(Al-An'aam) 6 : 17
وَإِنْ يَمْسَسْكَ اللَّهُ بِضُرٍّ فَلَا كَاشِفَ لَهُ إِلَّا هُوَ ۖ وَإِنْ يَمْسَسْكَ بِخَيْرٍ فَهُوَ عَلَىٰ كُلِّ شَيْءٍ قَدِيرٌ

And If Allah afflicts you with any distress, no one is there to remove it except He; and if He afflicts you with a good, then He is capable of everything.

If any goodness happens, it is from the Mercy of the Lord while any bad or evil happens, it is from the Disbeliever Satan as explained in verse 4: 79. It is told in verse 10: 107: "If Lord touches you with adversity, then there is no one to remove it except He; and if He intends good for you, then there is no one to repel His Bounty, He causes It to reach whom He wishes among His servants, and He is the Forgiving, Merciful". Since the believer holdfasts the Safeguard Adhikr, he did holdfast the Safeguard Lord and is guided into the Straightpath as explained in verses 3: 101-102. See explanation 2: 148 and 5: 75-76.